home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
AMIGA
/
AMICUS
/
AMIBEST2.ADF
/
Best of AMICUS 2
/
HP-10C
/
HP-10C.DOC
< prev
next >
Wrap
Text File
|
1987-07-22
|
3KB
|
73 lines
HP-10C
-- ---
By Duncan Prindle
BITNET: DUNCAN@SLACVM
This program was written using TDI Modula-2. It is freely
distributable, as long as this notice is distributed with it.
This is my first program for the Amiga, and my first in Modula-2;
suggestions would be appreciated. The only known `bug' is that it
seems that not all memory is returned when the program is closed. I don't
know why. If you compare with an actual HP-10C you will notice that
many functions are not in this version, and the keys that are similar
are arranged differently. Also the C (in HP-10C) is not quite correct.
The program does not remember its state from the last time it was closed.
ERROR MESSAGES
----- --------
Illegal operations will result in an error message. Hitting CLX
(for Clear X) will get rid of this message, but also erases X, which
may not be desirable. A simple way to get rid of the error message,
and not clear X, is to push the right mouse button (make a null menu
selection).
THE FUNCTIONS
--- ---------
Hopefully it won't be too hard to guess what the buttons mean.
The RAD key toggles to DEG, allowing trigonometric calculations in
either radians or degrees. The GLD key (meaning GOLD) is also a toggle,
selecting alternate functions for a number of keys. Some of the keys
that may not be obvious are:
sqr means Squre root
lsX last X
CLS Clear Stack
X-Y Switch X and Y
Note that there are 10 storage locations recognized by STO and RCL.
Select STO (or RCL) and then 0 through 9.
I have not implemented the Enter Exponent key (EEX) yet. In fact
I may never implement it. You can fake it using 10 to the X.
Someday I will learn how to create images, and then the square root
key will be obvious.
THE MATH
--- ----
All calculations are done with real numbers. This means an 8-bit
exponent and 24-bit mantissa. BINARY, OCTAL and HEX displays
convert the real number to a 24 bit integer for display purposes only;
the math is still done with real numbers.
The display is not big enough to display all 24 bits in BINARY. The
display will be truncated and no error message will be displayed.
If X will not fit into a 24-bit integer the BINARY, OCTAL and HEX
display options will print `24-BIT OVERFLOW'. Pushing the right mouse
button will not clear this error message as the value of X is still
too big for 24 bits. The number can be displayed in DECIMAL or
Scientific displays.